﻿<UserControl x:Class="BizTalk_Benchmark_Wizard.Resources.Styles.Gauge"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Height="222.411" Width="193.256" Loaded="UserControl_Loaded">
    <UserControl.Resources>
        <!--<Style x:Key="{x:Type TextBox}" TargetType="{x:Type TextBoxBase}">
            <Setter Property="SnapsToDevicePixels" Value="True"/>
            <Setter Property="OverridesDefaultStyle" Value="True"/>
            <Setter Property="KeyboardNavigation.TabNavigation" Value="None"/>
            <Setter Property="FocusVisualStyle" Value="{x:Null}"/>
            <Setter Property="MinWidth" Value="20"/>
            <Setter Property="MinHeight" Value="20"/>
            <Setter Property="AllowDrop" Value="true"/>
            <Setter Property="Template">
                <Setter.Value>
                    <ControlTemplate TargetType="{x:Type TextBoxBase}">
                        <Border Name="Border"
                                  CornerRadius="5" 
                                  Padding="2"
                                  Background="{StaticResource WindowBackgroundBrush}"
                                  BorderBrush="{StaticResource SolidBorderBrush}"
                                  BorderThickness="1" >
                            <ScrollViewer Margin="0" x:Name="PART_ContentHost"/>
                        </Border>
                        <ControlTemplate.Triggers>
                            <Trigger Property="IsEnabled" Value="False">
                                <Setter TargetName="Border" Property="Background" Value="{StaticResource DisabledBackgroundBrush}"/>
                                <Setter TargetName="Border" Property="BorderBrush" Value="{StaticResource DisabledBackgroundBrush}"/>
                                <Setter Property="Foreground" Value="{StaticResource DisabledForegroundBrush}"/>
                            </Trigger>
                        </ControlTemplate.Triggers>
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
        </Style>-->
    </UserControl.Resources>
    <Grid>
        <Canvas>
            <Image Source="../Images/Gauge.png" 
                                       Height="190" 
                                       Width="189.924" 
                                       Canvas.Left="0" 
                                       Canvas.Top="0">
            </Image>
            <TextBox Canvas.Left="70.4" Canvas.Top="141.6" Height="20" Name="textBox1" Width="49.2"/>
            <Image  x:Name="needle" Source="../Images/needle.png" Canvas.Left="87.465" Canvas.Top="93.296" Height="77.469" Width="15.827">
                <Image.RenderTransform>
                    <RotateTransform Angle="{Binding Counter}" CenterX="8" CenterY="0" />

                </Image.RenderTransform>
            </Image>
            <Image  Source="../Images/round.png" Width="37.485" Canvas.Top="75.803" Canvas.Left="77.469" Height="37.485" />
            <Label Canvas.Left="0.833" Canvas.Top="192.423" Height="22.322" Width="190.757" FontFamily="Calibri">
                <TextBlock Name="lblDescription" TextAlignment="Center" Width="190">Label</TextBlock>
            </Label>
            
        </Canvas>
    </Grid>
</UserControl>
